﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="DistributionRelationByHos.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.DistributionManage.DistributionRelationByHos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<br />
    <div id="tabnav">
        <ul>
            <li><a href="DistributionRelationByCom.aspx?procureCatalogId=<%= Request.QueryString["procureCatalogId"] %>">
                按企业查看配送关系</a></li>
            <li class="active"><a href="javascript:void(0);">按医疗机构查看配送关系</a></li>
        </ul>
    </div>
    <div class="maincon">
        <div id="note">
            产品信息</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th align="right" width="20%">
                    <asp:Label ID="lblGoodsNameTag" runat="server" Text="产品名称："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblGoodsName" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblOutlookcTag" runat="server" Text="规格型号："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblOutlookc" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblMaterialTag" runat="server" Text="材质："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblMaterial" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblUnitTag" runat="server" Text="单位："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblUnit" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblCompany_ZBTag" runat="server" Text="投标企业："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_ZB" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblCompany_SCTag" runat="server" Text="生产企业："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_SC" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">
        </div>
        <asp:Repeater ID="rptHospital" runat="server" OnItemDataBound="rptHospital_ItemDataBound">
            <HeaderTemplate>
                <table class="mainlist" >
                    <tr>
                        <th style="width: 40px">
                            序号
                        </th>
                        <th style="width: 120px">
                            医疗机构
                        </th>
                        <th>
                            配送企业
                        </th>
                        <th  width="95px">
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Container.ItemIndex+1 %>
                    </td>
                    <td align="left">
                        <%#Eval("HospitalName")  %>
                    </td>
                    <td align="left">
                        <table class="innertable2" align="left">
                            <asp:Repeater ID="rptDistributionCom" runat="server" OnItemDataBound="rptDistributionCom_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="dashed">
                                        <td >
                                            <%#Eval("CompanyName_PS")%>
                                        </td>
                                         <td style="width:50px">
                                            <%# Convert.ToBoolean( Eval("DistributionIsUsing")) ? "已启用" : "未启用"%>
                                        </td>
                                        <td style="width:60px">
                                            <asp:Literal ID="ltlFlow" runat="server" Text='<%# Eval("FlowID")%>'></asp:Literal>
                                        </td>
                                        <td style="width:40px">
                                            <a href="DistributionRelationEdit.aspx?procureCatalogId=<%=Request.QueryString["procureCatalogId"] %>&hospitalId=<%#Eval("HospitalID") %>&companyId=<%# Eval("CompanyID_PS") %>">编辑</a> 
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                    <td  width="95px" valign="top">
                        <a href="DistributionCompanyEdit.aspx?procureCatalogId=<%=Request.QueryString["procureCatalogId"] %>&hospitalId=<%#Eval("HospitalID") %>">
                                       <img src="../../lib/images/add.gif" align="middle" alt="" >增加配送企业</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
